var cc__decorate = __decorate;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var cc__decorator = cc._decorator;
var ccp_ccclass = cc__decorator.ccclass;
var ccp_property = cc__decorator.property;
var def_zIndex = /* */function (_cc$Component44) {
  function _ctor() {
    var _this199;
    babel_classCallCheck(this, _ctor);
    _this199 = _callSuper(this, _ctor, arguments);
    _this199.index = 0;
    return _this199;
  }
  babel_inherits(_ctor, _cc$Component44);
  return babel_createClass(_ctor, [{
    key: "onEnable",
    value: function onEnable() {
      this.node.zIndex = this.index;
    }
  }]);
}(cc.Component);
cc__decorate([ccp_property], def_zIndex.prototype, "index", undefined);
def_zIndex = cc__decorate([ccp_ccclass], def_zIndex);
exports.default = def_zIndex;